#!/bin/bash


proc_id=`ps -aux | grep -i "kylin.jar" | grep -v grep | awk '{print $2}'`

echo proc_id is  $proc_id

if [ ! -n "$proc_id" ]; then
  echo kylinOlap is not running
else
  echo pid is $proc_id
  kill  $proc_id
  echo stop kylinOlap sucess
fi